Q: The 2.0 Appkit Release Notes mention that you can use the
\f3\fs24 pasteFont:
\f0\fs28 method of the Text object as a “low-pain” method for extracting font information from the Font Pasteboard. Trouble is, when I try to do this, I always get the default font information -- Helvetica 12pt. What am I doing wrong?\
\i \
\i0 A: The solution is easy but perhaps not obvious. In order for the paste operation to have any effect, the Text object must contain a selection. It is not even strictly necessary that it contain any text. The following code illustrates the “low-pain” method of extracting font values from the Pasteboard. [The alternative “high-pain” method would involve parsing the rich text format from the Pasteboard]:\